package com.zhouyu.mysql.core;

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.io.file.FileMode;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * 大都督周瑜（我的私人微信: dadudu6789）
 */
public class SpaceUtil {


    public static Path createUserTableSpace(String tableName) {
        Path path = Paths.get(tableName + ".ibd");
        FileUtil.createRandomAccessFile(path, FileMode.rw);
        return path;
    }

}
